/*************************************************************************
	> File Name: sscanf.c
	> Author: 
	> Mail: 
	> Created Time: 一  7/ 8 15:23:21 2024
 ************************************************************************/

#include<stdio.h>

int main() {
	char s[105] = "123 456 789";
	int a, b, c;
	sscanf(s, "%d %d %d", &a, &b, &c); //从字符数组中读取输入,字符串信息转换成其他类型的信息
	// printf("a = %d, b = %d, c = %d\n", a, b, c);
	sprintf(s, "%d.%d.%d", a, b, c); //输出到字符串中
	printf("s = %s\n", s);
	return 0;
}
